package com.thoughtful;

import com.thoughtful.annotation.RpcScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author yushun
 * @createTime 2022/10/20 - 11:38
 **/
@RpcScan(basePackage = {"com.thoughtful"})
public class NettyClientMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(NettyClientMain.class);
        HelloController helloController = (HelloController) applicationContext.getBean("helloController");
        helloController.test();
    }

}
